<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <base href="<?php echo base_url(); ?>"  />
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <title>MY PRINTS | MYPRINTS.VN</title>
    <link href="<?php echo CSS_PATH;?>bootstrap.css" rel="stylesheet" />
    <link href="<?php echo CSS_PATH;?>bootstrap.min.css" rel="stylesheet" />
    <link href="<?php echo CSS_PATH;?>style.css" rel="stylesheet" />
    <link href="<?php echo CSS_PATH;?>bootstrap-theme.css" rel="stylesheet" />
    <!--[if IE 8]><link href="<?php echo CSS_PATH;?>ie8.css" rel="stylesheet" /><![endif]-->    
    <!--[if IE 7]><link href="<?php echo CSS_PATH;?>ie7.css" rel="stylesheet" /><![endif]-->  
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
    <script src="<?php echo SCRIPTS_PATH;?>bootstrap.js"></script>
    <script src="<?php echo SCRIPTS_PATH;?>bootstrap.min.js"></script>
<!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
      <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
  </head>
  <body>
<!-- facebook login -->
<div id="fb-root"></div>
<script>
window.fbAsyncInit = function() {
	FB.init({
    	appId      : '490438847744597', 
    	status     : true, 
    	cookie     : true, 
    	xfbml      : true  
	});
};
(function(d){
    var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
    if (d.getElementById(id)) {return;}
    js = d.createElement('script'); js.id = id; js.async = true;
    js.src = "//connect.facebook.net/en_US/all.js";
    ref.parentNode.insertBefore(js, ref);
}(document));
function FBLogin(){
	FB.login(function(response){
		if(response.authResponse){
			FB.api('/me', function(profile) { 
                var str = 'birthday='+profile.birthday;
                 str += '&email='+profile.email;
                 str += '&name='+profile.name;
                 str += '&username='+profile.username;
                window.location.href = "users/social/loginfb?"+str;
             });
		}
	}, {scope: 'email, user_birthday'});
}
</script>
<!-- end facebook login -->
    <div class="container">
        <?php echo $template['partials']['header'];
        echo $template['partials']['NavTop'];  ?>	
        <div class="container marketing">	
            <?php echo $template['body']; ?>
        </div>
        <div class="footer">
            <div class="container">
                <?php echo $template['partials']['footer']; ?>
            </div>	
        </div>
    </div>					
  </body>
</html>